package xyz.lwm.lazycat.web.annocation;

import xyz.lwm.lazycat.annotation.Bean;
import xyz.lwm.lazycat.utility.reflect.AliasTo;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * request controller
 *
 * @author lwm
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.ANNOTATION_TYPE})
@Bean
public @interface Controller {

    /**
     * @return the path of request
     */
    @AliasTo("path")
    String value() default "";

    /**
     * @return the path of request
     */
    @AliasTo("value")
    String path() default "";

}
